import axios from "axios"

const getApi = (bookNamme: string) => {
    return axios.get(`/api/test?bookName=${bookNamme}`)
}
const addApi = (req: any) => {
    return axios.post(`/api/add`, req)
}
const editApi = (req: any) => {
    return axios.post(`/api/edit`, req)
}
const delApi = (id: string) => {
    return axios.delete(`/api/del?id=${id}`)
}

export { getApi, addApi, editApi, delApi }

